* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-image: url(../image/background.jpg);
    background-repeat: repeat;
    background-position: center center;
    background-size: cover;
    
}

/* 下面继续写导航栏 */
.nav {
    width: 100%;
    height: 50px;
    background-color: rgba(50,50,50,0.4);
    color: rgb(255, 255, 255);

    display: flex;
    align-items: center;
}

.nav img {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin-left: 30px;
    margin-right: 10px;
}

.nav .spacer {
    width: 65%;
}

.nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0 10px;/*内边距*/
    /*给按钮的颜色变化加个过渡*/
    transition: all 0.5s;
}
.nav a:hover {
    background-color: #333;
    color: #fff;
}
.container {
    width: 1000px;
    height: calc(100% - 50px);
    margin: 0 auto;
    
    /* 实现左右布局,就得用flex */
    display: flex;
    justify-content: space-between;
    /* 两者之间加个空隙 */

}

.container-left {
    height: 100%;
    width: 200px;


}
/* 200+800=1000px */
.container-right {
    height: 100%;
    width: 795px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 10px;

    /*描述了溢出之后咋办,如果内容多,自动增加滚动条,如果内容少,不加*/
    overflow: auto;/*多出来的内容滚动条不带动窗口滚动*/
}

.card {
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 30px;
    /* height: 50%;这里是我自己加的 */
}

/* 用户头像 */
.card img {
    width: 140px;
    height: 140px;
    border-radius: 70px;
}

/* 用户名 */
.card h3 {
    text-align: center;
    padding: 10px;
}

/* Gitee链接 */
.card a {
    /* a标签是一个行内元素,此时我们转成块级元素 */
    display: block;
    text-align: center;
    text-decoration: none;
    /* 上面的操作用于去掉下划线 */
    padding: 10px;
    color: rgba(18, 157, 185, 0.8);
    /*给按钮的颜色变化加个过渡*/
    transition: all 0.5s;
}
.card a:hover {
    background-color: #333;
    color: #fff;
    /* border-radius: 10%; */
}

.card .counter {
    display: flex;/*自动调节*/
    padding: 5px;/*内边距*/
    justify-content: space-around;/*水平居中*/
}
